package com.house.service.impl;

import com.house.entity.LetterIntent;
import com.house.mapper.LetterIntentMapper;
import com.house.service.LetterIntentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author asus
 * @since 2021-02-28
 */
@Service
public class LetterIntentServiceImpl implements LetterIntentService {

    @Resource
    private LetterIntentMapper letterIntentMapper;

    @Override
    public Integer insertNewLetterIntent(LetterIntent letterIntent) {
        return letterIntentMapper.insertNewLetterIntent(letterIntent);
    }

    @Override
    public List<LetterIntent> selectLetterIntent(Integer hostId) {
        return letterIntentMapper.selectLetterIntent(hostId);
    }
}
